feach working but syntax not so Ruby-like