fixing strict issue in protected