merged ampersand with i/o code