replaced {} first function