added percentage calculations