select operation working