metoer working on localhost