changed profile create function