changed complement function name