protective method to avoid infini load