finished adding calcKey
fixed kold in while loop of compsp