changed to integer tuple based implementation
changed to integer tuple based implementation
 attempt 1