make calculation works