got the proper output