Deleted bad code and remade it