added the missed functionality in the last commit