$define now works correctly, added $lambda but it's not working yet