script for anonmyous function changes/different setup than normal functions