original code basey