added and commented out some test prints