move methods inside module