test codes by myself