minor bug corrected
minor bugs corrected