added options code