pseudo code form
merge user model