make reparation apply work
try to make things more rails way