fixed doubled printing