added staticProb funtionality