moved some functions to related.py