changes sorry for bad code