code was created to use optimize but the switch statement in handle_optmethod never actually gets there
code was created to use optimize but the switch statement in handle_optmethod never actually gets there