deleted most of the code