changed some functions and example-> load profile