fixed minor errors on line 50 preventing compilation