add to correct type