added probability to frame drawing