remove temp variable error