fixing small linnk bugs