final version before running