Tryied to make moldy calculations to work