initialize pointer with 0, remove unneeded braces