updates to functions header and style