pulled out method and updated readme