better names
created a getcoretype call to neaten things up