fixed empty constructor when creating data