small modification in code