rename functions
embed code into function