using try resource