now working with select