removed unnecessary logic from profile