wasn't differentiating between elements