added object attributes to methods