added exception for a elements