updated code to reflect the current users profile