unnecessary print + some bugs