old code usage