minor change for usage of select function