fixed mistake that was result of type earlier