fixed plate updating code