fixed function declaration