added code for retention arm