added more functions.