finished removing phpindex calls from gettype
finished removing phpindex calls from gettype