added range to copy
working on bad states