Allegri: We are gaining confidence