checking for bug in select