switched over to anonymous functions for annotators