fix error while compiling the code