filling in functions