more debug added calc