replaced var that with var object