putting portion draw function in