simplified $ detection