make the bad behaviour a function of its own