adding hidden input fields, removing debug statements