fix condition function and placeholder function