resolving a bug