clones props before messing around with it