missing variable declaration 'element'