added limit to save profile function