implement CR layout