makes values public
works on setType