fix warning about potentially unintialised variable