removed redundant endif