created profile functionality