updated the methods