second update, working without array names