fixing setType