adapted to libgdx 0.9.7 release