variables were not in proper scope