added option for thickness
added debugger