complain if resource.size < 0