passing specs for refactor