added debug code to add form