minor corrections and fixing