fixing end point problem for conv