added r4 prototype