further debugging revealed the error

A missing semicolen ";". C is back to haunt me i swear