changed some fields to methods