fixed #706

raising the new PR as previous PR has multiple commits and misleading, also taken care of suggested changes. Please review. 
OK page, but I will respectfully disagree and say 382