changed function styles