removed global variables; fix bug in page tables details