removed alert on type change