also ouput what you selected