calc implemented