remove of globals part 1
remove pointer motion handler