used before_filter for profile