add methods to main file