rectified the insert statement