fixed printProperties() function