Court documents show what led up to the point where a man was found sleeping in the same room as a dead body in Rosamond.

Back on April 15, Kern County Sheriff’s deputies booked Jaime Perez into county jail.

Court documents say the night before, a sibling went to check on Perez at a home on Alexander Avenue.

That sibling discovered Perez in bed, holding a shotgun, with the body wrapped up in garbage bags on the floor.

That body was identified as Kyle Ramirez. The Kern County coroner says Ramirez was strangled and stabbed.

Perez is charged with first-degree murder in the case.