add readonly variables for valid pointer handling