updated for bge