added functionality so static obstacles wont get lost in transition