fix table, rename element to resource