edited setTotalPrice header to private