pass data attribute when initializing models