Removed unused variables

Variables 'ul' and 'm' are never use so they can be safely removed