only one select instead of two