implemented rough pivotless layout