get monitor number in a better way