modified the checkPlaceHolder method;