added spike loss to modify input spike trains