eliminated print() in all functions