working on dynamic update