added vector 3 center detection