added comments
updated