add look ahead of prev inputs back in