some light functions.