optimized calculating result method