updated header function declaration