updated drawing order