code cutting out layout