remove not working function