simplify function declaration