corrected the source and created patch