fix for toSrt() method