improved gene lookup function