resolving angular error