works but black lines at edges