not ideal but works