updated variable assignment