adding layouting system; removed debug print