added if statement for .profile