declare resource structs at start of func