fixed double code