added option funcionality