modified the calc