i removed one line not my code and added endif