use correct syntax, with named functions