fix the previous syntax errors and finish the constructors