additional debugging
Validate inputs/additional debug/error checking