added methods to models