added comment and done minnor fixes