create annymous function beyond for