direct selecting based on logical condition added