added factory to user