made minor improvements