modified the to send individual integers rather than array