update function name, fix formatting