now using locals