changed syntax for head for tables changed in head