minor corrections to increase reliability