get rid of 'yellow last line' problem by assigning the function exit error handling and default value return code to the signature line instead of the last code line