moved requires outside method