remove temp variable assignment