have it save the type