added function getget columns for a state