function for on__ can now be simple string.