set the correct type