set user profile in function
set user profile in function