added more functionaity with profiles