removing erroneous period