fixed calculations