added string parser and different method to get the points