Without seeing the current code, all we can do is speculate (since your originally posted code does not contain a "$a" on line 3).