refactor alley