fixing problem with hardcoded table name