added percentage calculation