consider the remaining amount too