added option function