write some codes