fix prop and add template