preliminary implementation of restitution