script for calc added