seems to save correctly the variables. New test with errors