Theta used for worst case and example fixed