added placement logic