modified startDeniz for dynamic input instead of static