change behaviour of run function.