some utilities methods