refactor remove extra print