I see a missing bracket in the "cen" line, a missing type of the txt argument (if no type, it defaults to var)... I doubt that this can even compile.