add script for relative calc