added logic to also retrieve profile info