changed logic to allow mg to be drawn