using proper function signature, fixed whitespace