initialize arrays to 0 first