filling out function outline