added programs to prevent error