basic functions added to models