removed sign for prob calculation