update to the libgdx api