split method to 2 methods