some code for david or whoever to see