add anonymous function and delete all_colon
fix brackets