refactored profile spec