fix result calc