changed error in parsing of periods