it is working, but I will add clean up for better work flow design