initialize variables to 0