used lwjgl native method