added virtual attributes to contract model