replacing constants