move methods into spec