resolving conversion error