add script for reads assignment