commiting the revised version of the code