write select