added last functions