added last four functions