working on run mode