added max length for data being sent