added comments and remove redundant closeRow symbol