different way to use in/out