made buffer so it wouldnt crash