updating options method