slight modifications were done