functions seem to be working now just need to set up the problem