commonalize ball_basic functions