introducing new functions, with code error