added nakul's suggestions