v1 of createlayout