add code for single-end assembly