changed the API to make the wall parameter optional