code from the back end of duskyonliune.com