fixed to make it print result.