refactor profile specs