changed return types to void