edited out duplicate codee