implemented ball safety