var to correct object/type