moded write to standard library