- fixed issue in if else structure