refactored wall representation