change to layout algorithm