and you need to check for NULL here