some variables had no type declared. Fixed