validation functions
Tables functions