make capacity variable for better readability