final calc stuff