adding hybrid code