remove unused $table variable