added 2 methods as a part of performance improvement changes in grisu webstat