refactor for duplicated code over split methods