ugh, keep using 'end if' instead of 'end' lately