remove print or use logging