cleanup calculator syntax