removed display_profile function. cleaning up the code