codes added to two functions
updated comments
update description