modify method to send values to front