added profile functionality