test impruvment and check inputs for NULL