for clarity, maybe a check against NULL could help here