slight performance refactor