getting layout ready for alignment