refactoring into main methods