updated preset entity code