commented all the profile checking. not working properly.