changes to layoutengine