rename resourec to resource_name