added more box related functions.