fix result type