committing my two functions