simplified everything for debugging purposes