changed to @resource