refactoring for adjustment functions