necessary modification for bug resolution