change public to protected static for resources object