firstdraft

added functions