added statement processesing and repo output