added trackbars for adjusting parameters