better function name and fix an indentation