removing anonymous functions