remove named return value in parseBind
rewrite if-else with switch-case in parseBind