working
added comments