remove intermediate variable