updated script for RELS