check the level changes before setting the property