changed: Seperate result and comparison