replaced tabs by spaces and adjusted indent