begin implementing ML helper functions in reflectionLib