added I calculation