enhanced define syntax in order to define procedures
fixed define syntax and functions relating to it