removed err null values for testing