fix function again.