second version, same problems