implemented locate