write `require` in the head of file, not in method