added review handling code