added get properties method
improved versions