changing [:] copy to .copy()