removed redundant else block