Is there a reason you declare a 4 element array but only use 3?