fix indentation, and fix comment. since this code is identical to the block above, maybe make it a internal funciton?