attempt at including negative numbers