Fixed code errors

got rid of extra lines