using properties now correctly