fixes specs to compile
bug-fix: val function literal