moving the osclliation prob to utils