refined animation setup