simplified function declaration