checked with codereview tool and fixed