attribute and retireve methods for model base