closed #17. got rid of unnecessary code, including checknet