added basic $ function