adding run away function