source code implemented for missing element