fixed the placeholder functionality