fixing type on end of line