mainly my share of code