uncommented build_new_resource method