almost done except the error