error calculated no idea if correct