adjusting column limit and swich case