removed out dated test code
implementing embedded function calls