add check for clear and check for calc