Why is it that you only sometimes need to put return after the method in order for it to go back to the main when at other times it just calls it without this?