deleted dist
type function implemented