added method of select