ensured each method is returning correctly