added delay to linepainter