created first part of the function

without the code