added compound result calculation