Added a comment for the last case in optimize