model metoder.