added wall function for later implementation