removed unnecessary setTypes