profile Code is now in class file