deleted advanced option; deleted double code;