just before making select box