added common methods.