added tabledefs updated saptable class with tempta functions