minor bug corrected