add metrics.py
meliorate preprocess