calculate keys

X