code from kalkaska