creating basis of model