fix getting output