cand and sub loading working properly