working on dynamic for