code for mount assignment