simplified location based code in drop field