move methods into helpers