add errors for dynamic types