added "draw boxes" function