fixed pending code