implemented the options