converted public vars to properties