uncommented code and made it compile