added wrong script
removed unused functions