clean rep and workflow