function for getting the comp prefix
formatting