Atomic functions problem