fixed indizies and copy paste