remove white spaces
useless endif removed