changed resouceInfo to ptr