missing variable declaration added