refactored true false values in second argument and converted indentation to spaces