It had a bug in the function statement, comehow there was an A before the function declaration