draft profile fitting script