updated resourceInfo to ptr