script to get vertical table