cleaning stk coordinate extraction code