prototype for spark