changed layout for pre-tiy