extended code a bit. started report