integrating user model
trying to stop memory leaks