fixed figure code