correct name for this method as set_layout