The invention provides compounds that inhibit ROCK activity. In certain embodiments the compounds of the invention enhance cognitive function. The invention is also directed to pharmaceutical compositions that comprise ROCK inhibitors and to methods enhance cognitive function and reducing and/or treat cognitive function decline.