other functions

All functions added now onto troubleshooting