fixed function declaration

was working, but fixed for correctness