fixes select method