adding entity functions and header for reports