check if type is valid before checkpnt checker