func expressions instead of func declarations