remove extra props. added temp variable