chance calculation added
minor