removing trailing coma
moving anonymous function to named
syntax edit