fixed code as per add memver for building