Order of operations was mixed now fixed for resources folder