fixed code to return Total value from properties